<%@include file="/init.jsp" %>

<portlet:renderURL var="cancelURL" >
	<portlet:param name="jspPage" value="/admin/view.jsp"/>
</portlet:renderURL>

<portlet:actionURL name="updateProduct" var="updateProductURL" />

<%
	PRProduct product = (PRProduct) request.getAttribute("product");
%>
<aui:form action="<%= updateProductURL %>" name="fm" method="post">
	<aui:fieldset>
		<aui:input name="resourcePrimKey" value="<%= product.getProductId() %>" type="hidden" />
		<aui:input name="productName" value="<%= product.getProductName() %>" />
		<aui:input name="productSerial" value="<%= product.getSerialNumber() %>" />
		
		<aui:button-row>
			<aui:button type="submit"/>
			<aui:button type="cancel" value="Cancel" onClick="<%= cancelURL.toString() %>"/>
		</aui:button-row>
	</aui:fieldset>
</aui:form>